<!--
 * @Author: your name
 * @Date: 2021-12-13 19:13:06
 * @LastEditTime: 2021-12-14 08:17:26
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day6vue\my-app\src\components\Header.vue
-->

<template>
    <div class="header">
        <van-icon name="arrow-left" @click="goback"/>
        <b>{{value}}</b>
        <span>{{save}}</span>
    </div>
</template>

<script>
export default {
    props: ["value","save"],
    components: {
        
    },
    methods: {
        goback(){
            this.$router.go(-1)
        }
    }
}
</script>

<style lang="scss" scoped>
.header{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10px;
}
</style>
